﻿<Page
    x:Class="Bluno.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Bluno"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" DataContext="{Binding Main, Mode=OneWay, Source={StaticResource Locator}}">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
    	<ListView x:Name="lstBoards" HorizontalAlignment="Left" Height="606" Margin="328,0,0,0" VerticalAlignment="Top" Width="264" Background="#FFE4A4A4" ItemsSource="{Binding DeviceList}" SelectionChanged="lstBoards_SelectionChanged"/>
    	<Button Content="Button" HorizontalAlignment="Left" Margin="66,112,0,0" VerticalAlignment="Top" Height="80" Width="123" Click="Button_Click"/>
    	<Button x:Name="btnGetTemp" Content="GetTemp" HorizontalAlignment="Left" Margin="99,355,0,0" VerticalAlignment="Top" Click="btnGetTemp_Click"/>
    	<TextBlock HorizontalAlignment="Left" Margin="102,436,0,0" TextWrapping="Wrap" Text="{Binding Temprature}" VerticalAlignment="Top" Foreground="#FFFD6A6A"/>
    	<ToggleSwitch Header="Buzzer" HorizontalAlignment="Left" Margin="108,537,0,0" VerticalAlignment="Top" IsOn="{Binding BuzzerEnabled, Mode=TwoWay}"/>

    </Grid>
</Page>
